<template>
	<view class="text" style="padding-top: 6upx;background-color: #FFFFFF;border: 1rpx solid #eeebf0;border-radius: 10rpx;" @click="navto(info.id)">
		
		<view class="uni-flex uni-column">
			
			<view class="flex-item flex-item-V " style="text-align: center;" v-if="info.img">
				<image :src="imgSrc+'/'+info.img" style="width: 15vh;height:15vh;"></image>
			</view>
			
			<view class="flex-item flex-item-V " style="text-align: center;" v-else>
				<image src="/static/logo.png" mode="widthFix" style="width: 96%;height:18vh;"></image>
			</view>
			
			
			<view class="flex-item flex-item-V " >
				{{info.year}} {{info.name}}
			</view>
			<view class="flex-item flex-item-V frontcolor" >
			¥{{info.price}} <text style="font-size: 20upx;">升{{info.volume}}</text>
			</view>
			<!-- <view class="flex-item flex-item-V" style="font-size: 20upx;color: #007AFF;">
				找({{info.fpeople}}人)•出({{info.opeople}}人)
			</view> -->
			<view class="flex-item flex-item-V" style="font-size: 20upx;color: #555;">
				<view class="uni-flex uni-row" style="background-color: #fdfaff;">
					<view style="-webkit-flex: 1;flex: 1;padding-left: 10upx;" >{{info.snum}}人</view>
					<view style="-webkit-flex: 1;flex: 1;">{{info.year}}</view>
				</view>
				
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'pItem',
		props: {
			info: {},
		},
		data() {
			return {
				
				imgSrc:this.imgUrl
			}
		},
		filters:{
			dateFormat(value){
				
				let timearr = value.replace(" ", ":").replace(/\:/g, "-").split("-");
				let timestr = "" + timearr[1].split("")[1] + "-" + timearr[2] + "\t" +  ""
				
				
				return timestr
			}
		},
		methods: {
			navto(id) {
				
				uni.navigateTo({
					url: '/pages/quotes/detail?id='+id
				});
			}
		}
	}
</script>

<style lang="scss">
	$bg-color: #a22c32;
	.flex-item {
		width: 50%;
	}

	.flex-item-V {
		width: 100%;
	}

	.text {
		margin: 5rpx 5rpx;
		padding: 0 5rpx;
		line-height: 70rpx;
		color: #777;
		font-size: 26rpx;
	
	}
	.frontcolor{
		color: $bg-color;
	}
</style>
